import { SignupTypes } from "redux/constants";

export const Creators = {
  getRequest: ({ email, password, confirm_password }) => ({
    type: SignupTypes.GET_REQUEST,
    payload: { email, password, confirm_password },
  }),
  getSuccess: (data) => ({
    type: SignupTypes.GET_SUCCESS,
    payload: data,
  }),
  getFailure: (error) => ({
    type: SignupTypes.GET_FAILURE,
    payload: error,
  }),
};
